#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>

typedef struct Node
{
	int data;
	struct Node* next;
}*Node;

void change(Node head)
{
	int n = 10;
	head->data = n;
}

void add(Node head)
{
	Node n = (Node)malloc(sizeof(struct Node));
	n->data = 20;
	n->next = NULL;
	head->next = n;

}

int main()
{
	Node head = (Node)malloc(sizeof(struct Node));
	head->next = NULL;

	change(head);
	add(head);

	printf("%d", head->next->data);
	
	return 0;
}